Integrand size = 29, antiderivative size = 496 \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=-\frac {2 \left (a b^3 d g^4-b^2 \left (c^2 e f^4+4 a c d f g^3+a^2 e g^4\right )+2 a c \left (a^2 e g^4+c^2 f^3 (e f-4 d g)-2 a c f g^2 (3 e f-2 d g)\right )+b c \left (c^2 d f^4+a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (2 e f+3 d g)\right )+\left (2 c^4 d f^4+b^3 (b d-a e) g^4-b c g^3 \left (4 b^2 d f-3 a^2 e g-4 a b (e f-d g)\right )+2 c^2 g^2 \left (3 b^2 d f^2-3 a b f (e f-2 d g)-a^2 g (4 e f-d g)\right )+c^3 f^2 (4 a g (2 e f-3 d g)-b f (e f+4 d g))\right ) x\right )}{c^2 \left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {g^4 \sqrt {a+b x+c x^2}}{c^2 e}+\frac {g^3 (8 c e f-2 c d g-3 b e g) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2} e^2}+\frac {(e f-d g)^4 \text {arctanh}\left (\frac {b d-2 a e+(2 c d-b e) x}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x+c x^2}}\right )}{e^2 \left (c d^2-b d e+a e^2\right )^{3/2}} \]
[Out]
Time = 0.66 (sec) , antiderivative size = 496, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {1660, 1667, 857, 635, 212, 738} \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=-\frac {2 \left (-b^2 \left (a^2 e g^4+4 a c d f g^3+c^2 e f^4\right )+x \left (2 c^2 g^2 \left (a^2 (-g) (4 e f-d g)-3 a b f (e f-2 d g)+3 b^2 d f^2\right )-b c g^3 \left (-3 a^2 e g-4 a b (e f-d g)+4 b^2 d f\right )+b^3 g^4 (b d-a e)+c^3 f^2 (4 a g (2 e f-3 d g)-b f (4 d g+e f))+2 c^4 d f^4\right )+b c \left (a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (3 d g+2 e f)+c^2 d f^4\right )+2 a c \left (a^2 e g^4-2 a c f g^2 (3 e f-2 d g)+c^2 f^3 (e f-4 d g)\right )+a b^3 d g^4\right )}{c^2 \left (b^2-4 a c\right ) \sqrt {a+b x+c x^2} \left (a e^2-b d e+c d^2\right )}+\frac {g^3 \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right ) (-3 b e g-2 c d g+8 c e f)}{2 c^{5/2} e^2}+\frac {(e f-d g)^4 \text {arctanh}\left (\frac {-2 a e+x (2 c d-b e)+b d}{2 \sqrt {a+b x+c x^2} \sqrt {a e^2-b d e+c d^2}}\right )}{e^2 \left (a e^2-b d e+c d^2\right )^{3/2}}+\frac {g^4 \sqrt {a+b x+c x^2}}{c^2 e} \]
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 857
Rule 1660
Rule 1667
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \left (a b^3 d g^4-b^2 \left (c^2 e f^4+4 a c d f g^3+a^2 e g^4\right )+2 a c \left (a^2 e g^4+c^2 f^3 (e f-4 d g)-2 a c f g^2 (3 e f-2 d g)\right )+b c \left (c^2 d f^4+a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (2 e f+3 d g)\right )+\left (2 c^4 d f^4+b^3 (b d-a e) g^4-b c g^3 \left (4 b^2 d f-3 a^2 e g-4 a b (e f-d g)\right )+2 c^2 g^2 \left (3 b^2 d f^2-3 a b f (e f-2 d g)-a^2 g (4 e f-d g)\right )+c^3 f^2 (4 a g (2 e f-3 d g)-b f (e f+4 d g))\right ) x\right )}{c^2 \left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}-\frac {2 \int \frac {-\frac {\left (b^2-4 a c\right ) \left (b d (b d-a e) g^4-c d g^3 (4 b d f-4 a e f+a d g)+c^2 f^2 \left (e^2 f^2-4 d e f g+6 d^2 g^2\right )\right )}{2 c^2 \left (c d^2-b d e+a e^2\right )}-\frac {\left (b^2-4 a c\right ) g^3 (4 c f-b g) x}{2 c^2}-\frac {\left (b^2-4 a c\right ) g^4 x^2}{2 c}}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{b^2-4 a c} \\ & = -\frac {2 \left (a b^3 d g^4-b^2 \left (c^2 e f^4+4 a c d f g^3+a^2 e g^4\right )+2 a c \left (a^2 e g^4+c^2 f^3 (e f-4 d g)-2 a c f g^2 (3 e f-2 d g)\right )+b c \left (c^2 d f^4+a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (2 e f+3 d g)\right )+\left (2 c^4 d f^4+b^3 (b d-a e) g^4-b c g^3 \left (4 b^2 d f-3 a^2 e g-4 a b (e f-d g)\right )+2 c^2 g^2 \left (3 b^2 d f^2-3 a b f (e f-2 d g)-a^2 g (4 e f-d g)\right )+c^3 f^2 (4 a g (2 e f-3 d g)-b f (e f+4 d g))\right ) x\right )}{c^2 \left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {g^4 \sqrt {a+b x+c x^2}}{c^2 e}-\frac {2 \int \frac {-\frac {\left (b^2-4 a c\right ) e \left (3 b d e (b d-a e) g^4+2 c^2 e f^2 \left (e^2 f^2-4 d e f g+6 d^2 g^2\right )+c d g^3 (2 a e (4 e f-d g)-b d (8 e f+d g))\right )}{4 c \left (c d^2-b d e+a e^2\right )}-\frac {\left (b^2-4 a c\right ) e g^3 (8 c e f-2 c d g-3 b e g) x}{4 c}}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{c \left (b^2-4 a c\right ) e^2} \\ & = -\frac {2 \left (a b^3 d g^4-b^2 \left (c^2 e f^4+4 a c d f g^3+a^2 e g^4\right )+2 a c \left (a^2 e g^4+c^2 f^3 (e f-4 d g)-2 a c f g^2 (3 e f-2 d g)\right )+b c \left (c^2 d f^4+a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (2 e f+3 d g)\right )+\left (2 c^4 d f^4+b^3 (b d-a e) g^4-b c g^3 \left (4 b^2 d f-3 a^2 e g-4 a b (e f-d g)\right )+2 c^2 g^2 \left (3 b^2 d f^2-3 a b f (e f-2 d g)-a^2 g (4 e f-d g)\right )+c^3 f^2 (4 a g (2 e f-3 d g)-b f (e f+4 d g))\right ) x\right )}{c^2 \left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {g^4 \sqrt {a+b x+c x^2}}{c^2 e}+\frac {(e f-d g)^4 \int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{e^2 \left (c d^2-b d e+a e^2\right )}+\frac {\left (g^3 (8 c e f-2 c d g-3 b e g)\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{2 c^2 e^2} \\ & = -\frac {2 \left (a b^3 d g^4-b^2 \left (c^2 e f^4+4 a c d f g^3+a^2 e g^4\right )+2 a c \left (a^2 e g^4+c^2 f^3 (e f-4 d g)-2 a c f g^2 (3 e f-2 d g)\right )+b c \left (c^2 d f^4+a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (2 e f+3 d g)\right )+\left (2 c^4 d f^4+b^3 (b d-a e) g^4-b c g^3 \left (4 b^2 d f-3 a^2 e g-4 a b (e f-d g)\right )+2 c^2 g^2 \left (3 b^2 d f^2-3 a b f (e f-2 d g)-a^2 g (4 e f-d g)\right )+c^3 f^2 (4 a g (2 e f-3 d g)-b f (e f+4 d g))\right ) x\right )}{c^2 \left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {g^4 \sqrt {a+b x+c x^2}}{c^2 e}-\frac {\left (2 (e f-d g)^4\right ) \text {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x}{\sqrt {a+b x+c x^2}}\right )}{e^2 \left (c d^2-b d e+a e^2\right )}+\frac {\left (g^3 (8 c e f-2 c d g-3 b e g)\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{c^2 e^2} \\ & = -\frac {2 \left (a b^3 d g^4-b^2 \left (c^2 e f^4+4 a c d f g^3+a^2 e g^4\right )+2 a c \left (a^2 e g^4+c^2 f^3 (e f-4 d g)-2 a c f g^2 (3 e f-2 d g)\right )+b c \left (c^2 d f^4+a^2 g^3 (4 e f-3 d g)+2 a c f^2 g (2 e f+3 d g)\right )+\left (2 c^4 d f^4+b^3 (b d-a e) g^4-b c g^3 \left (4 b^2 d f-3 a^2 e g-4 a b (e f-d g)\right )+2 c^2 g^2 \left (3 b^2 d f^2-3 a b f (e f-2 d g)-a^2 g (4 e f-d g)\right )+c^3 f^2 (4 a g (2 e f-3 d g)-b f (e f+4 d g))\right ) x\right )}{c^2 \left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {g^4 \sqrt {a+b x+c x^2}}{c^2 e}+\frac {g^3 (8 c e f-2 c d g-3 b e g) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2} e^2}+\frac {(e f-d g)^4 \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x+c x^2}}\right )}{e^2 \left (c d^2-b d e+a e^2\right )^{3/2}} \\ \end{align*}
Time = 12.46 (sec) , antiderivative size = 587, normalized size of antiderivative = 1.18 \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=\frac {-\frac {2 e \left (-3 b^4 d e g^4 x+b^3 g^3 (3 a e g (-d+e x)+c d x (8 e f+d g-e g x))+b^2 \left (3 a^2 e^2 g^4+c^2 \left (2 e^2 f^4-12 d e f^2 g^2 x+d^2 g^4 x^2\right )+a c g^3 \left (d^2 g+e^2 x (-8 f+g x)+4 d e (2 f+3 g x)\right )\right )-2 b c \left (a^2 e g^3 (4 e f-5 d g+5 e g x)+c^2 e f^3 (-e f x+d (f-4 g x))+2 a c g \left (d^2 g^3 x+e^2 f^2 (2 f-3 g x)+d e g \left (3 f^2+6 f g x-g^2 x^2\right )\right )\right )-4 c \left (2 a^3 e^2 g^4+c^3 d e f^4 x+a c^2 \left (d^2 g^4 x^2-2 d e f^2 g (2 f+3 g x)+e^2 f^3 (f+4 g x)\right )+a^2 c g^2 \left (d^2 g^2+d e g (4 f+g x)+e^2 \left (-6 f^2-4 f g x+g^2 x^2\right )\right )\right )\right )}{c^2 \left (b^2-4 a c\right ) \left (-c d^2+e (b d-a e)\right ) \sqrt {a+x (b+c x)}}+\frac {2 (e f-d g)^4 \log (d+e x)}{\left (c d^2+e (-b d+a e)\right )^{3/2}}+\frac {g^3 (8 c e f-2 c d g-3 b e g) \log \left (b+2 c x+2 \sqrt {c} \sqrt {a+x (b+c x)}\right )}{c^{5/2}}-\frac {2 (e f-d g)^4 \log \left (-b d+2 a e-2 c d x+b e x+2 \sqrt {c d^2+e (-b d+a e)} \sqrt {a+x (b+c x)}\right )}{\left (c d^2+e (-b d+a e)\right )^{3/2}}}{2 e^2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1025\) vs. \(2(474)=948\).
Time = 1.04 (sec) , antiderivative size = 1026, normalized size of antiderivative = 2.07
method | result | size |
default | \(\text {Expression too large to display}\) | \(1026\) |
risch | \(\text {Expression too large to display}\) | \(4958\) |
[In]
[Out]
Timed out. \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=\int \frac {\left (f + g x\right )^{4}}{\left (d + e x\right ) \left (a + b x + c x^{2}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Exception generated. \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {(f+g x)^4}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx=\int \frac {{\left (f+g\,x\right )}^4}{\left (d+e\,x\right )\,{\left (c\,x^2+b\,x+a\right )}^{3/2}} \,d x \]
[In]
[Out]